<template>
	<view>
		<Header title="关于我们" />
		<view class="" style="height: 250rpx;"></view>
		<view class="" style="text-align: center;">
			<image src="@/static/log.png" mode="aspectFill" style="width: 150rpx;height: 150rpx;"></image>
			<view class="" style="margin-top: 15rpx;">
				<view class="" style="font-size: 32rpx;font-weight: 600;">E路同程</view>
				<view class="">Version {{userVision}}</view>
			</view>
			<view class="">
				<view class="">
					<view class="one_box_flex" style="padding-top: 30rpx;" @click="todas">
						<view class="" style="font-size: 28rpx;">功能介绍</view>
						<image src="../../../static/tabBar/right.png" mode="aspectFill">
						</image>
					</view>
					<view class="one_box_flex" style="padding-top: 30rpx;" @click="tanchuang">
						<view class="" style="font-size: 28rpx;">检查新版本</view>
						<view>
							<span v-if="reddot==0" style="font-size: 28rpx;">暂无更新</span>
							<span v-if="reddot==1" style="font-size: 28rpx;">新版本：<span style="color: coral;">{{vision}}</span></span>
							<image src="../../../static/tabBar/right.png" mode="aspectFill">
							</image>
						</view>
						
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import Header from '@/components/header/header.vue'
	export default {
		components: {
			Header
		},
		data() {
			return {
				reddot:0,
				vision:"1.1.1",
				userVision:"1.1.1"
			}
		},
		onLoad(e) {
			this.reddot = e.reddot;
			this.vision = e.vision;
			let systemInfo = uni.getSystemInfoSync();
			this.userVision = systemInfo.appWgtVersion;
		},
		methods: {
			todas() {
				uni.navigateTo({
					url: '/pages/my/adbouWe/operates/operates'
				})
			},
			tanchuang(){
				if(this.reddot==1){
					uni.navigateTo({
						url: '/pages/my/adbouWe/operates/newVision'
					})
				}
			}
		}
	}
</script>

<style>
	.one_box_flex {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20rpx;
		width: 670rpx;
		margin-top: 20rpx;
		padding-left: 40rpx;
	}

	.one_box_flex image {
		width: 24rpx;
		height: 24rpx;
	}
</style>